<h2>
	<span>Novo Gasto</span>
</h2>
<?php echo validation_errors('',''); ?>
<div class="clr"></div>
<?php echo form_open("javascript:gravar();",array("id"=>"formulario"));?>
<table>
	<tr>
		<td>
			<?php echo form_label("Nome","nome");?>
		</td>
		<td>
			<?php echo form_input(array("name"=>"nome","id"=>"nome"),set_value("nome",""))?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo form_label("Valor","valor");?>
		</td>
		<td>
			<?php echo form_input(array("name"=>"valor","id"=>"valor","title"=>"Exemplo: 223.56"),set_value("valor",""))?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo form_label("Data","data");?>
		</td>
		<td>
			<?php echo form_input(array("name"=>"data","id"=>"data","readonly"=>"readonly"),set_value("data",date("d/m/Y")))?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo form_label("Categoria","categoria");?>
		</td>
		<td>
			<?php echo form_dropdown("categoria",$categorias,set_value("categoria",""))?>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="right"><?php echo form_button(array("onclick"=>"gravar();"),"Cadastrar");?>
		</td>
	</tr>
</table>
<?php echo form_close();?>